#pragma once

#include <iostream>
#include <stdio.h>
#include <vector>
#include <thread>
#include <string>

#include "../Peer/Peer.h"
///-------------------------------------------------------------------------------------------------
/// <summary>	A macro that defines maximum amount of connected clients. </summary>
///
/// <remarks>	Adrian, 31/08/2015. </remarks>
///-------------------------------------------------------------------------------------------------

#define MAX_CLIENTS 10
#define SERVER_PORT 60000

using std::vector;
using std::cout;
using std::endl;
using std::cin;
using std::string;
using namespace RakNet;

enum GameMessages
{
	ID_GAME_MESSAGE_1 = ID_USER_PACKET_ENUM + 1
};

///-------------------------------------------------------------------------------------------------
/// <summary>	A simple chat Class Definition. </summary>
///
/// <remarks>	Adrian, 31/08/2015. </remarks>
///-------------------------------------------------------------------------------------------------
class SimpleChat
{
public:
	Network::Peer::Peer *peer;
	SimpleChat();
	~SimpleChat();
	void RunService();
	bool IsServer();

private:
	vector<Network::Peer::Peer*> clients;
	void RunClientCode();
	void RunServerCode();
};

